<template>
  <div>
    <div class="header publicpc">
      <h1 class="logo w1200 m0"></h1>
    </div>
    <!--nav-->
    <div class="nav publicpc">
      <div class="navInner clearfix Clearfix">
        <ul class="fl">
          <li v-for="item in linkList" :key="item.name">
            <router-link :to="item.link">{{ item.name }}</router-link>
          </li>
        </ul>
        <form action="/index.php" method="get" target="_blank">
          <input type="hidden" name="m" value="search" />
          <input type="hidden" name="c" value="index" />
          <input type="hidden" name="a" value="init" />
          <input type="hidden" name="typeid" value="1" id="typeid" />
          <input type="hidden" name="siteid" value="1" id="siteid" />
          <div class="fr searchBox">
            <p class="fl">
              <input
                type="text"
                class="searchIpt"
                placeholder="请输入您要搜索的课程"
                name="q"
                id="q"
              />
              <input type="submit" value=" " class="searchBtn fr" />
            </p>
          </div>
        </form>
      </div>
    </div>

    <!-- 移动端导航 -->
    <div class="wapHead publicwap">
      <div class="waplogp">
        <img src="@/assets/images/public/waplog.png" alt="" />
      </div>
      <div class="wap-tab" @click="webtab = !webtab">
        <img src="@/assets/images/public/nav.png" alt="" />
      </div>
    </div>

    <div class="big-box publicwap" v-show="webtab">
      <!--导航-->
      <div class="nav" style="padding-top: 20px; margin: auto; right: 0px">
        <div class="nav-box">
          <div
            class="yijidaohang"
            v-for="(item, index) in linkList"
            :key="index"
          >
            <router-link :to="item.link">{{ item.name }}</router-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      webtab: 0,
      linkList: [
        { name: "首页", link: "/" },
        { name: "通知公告", link: "" },
        { name: "政策文件", link: "" },
        { name: "精品课程", link: "" },
        { name: "专家团队", link: "" },
        { name: "联系我们", link: "" },
      ],
    };
  },
};
</script>
<style scoped>
.publicwap {
  display: none;
}
.publicpc {
  display: block;
}
.header {
  width: 100%;
  height: 284px;
  /* background: url("@/../assets/images/header.jpg") no-repeat center center; */
  background: url("~@/assets/images/header.jpg") no-repeat center center;
}
.header .logo {
  line-height: 340px;
}
.header_word {
  width: 530px;
  height: 166px;
  background: rgba(8, 70, 72, 1);
  border: 2px dotted rgba(255, 255, 255, 1);
  opacity: 0.8;
  border-radius: 10px;
  margin-top: 68px;
}
.header_word p {
  color: #fff;
  font-size: 20px;
  padding: 15px;
  line-height: 34px;
}
.nav {
  height: 60px;
  width: 100%;
  background: #ac8b6c;
}
.navInner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.navInner ul li {
  float: left;
  position: relative;
}
.navInner ul li a {
  color: #fff;
  font-size: 20px;
  display: inline-block;
  line-height: 60px;
  height: 60px;
  padding: 0 35px;
}
.navInner ul li .secondMenu a {
  padding: 0px;
  width: 100%;
  text-align: center;
}
.navInner ul li a.active,
.navInner ul li a:hover {
  background: url("~@/assets/images/navbg1.png") repeat-x left center;
}
.navInner ul li .secondMenu {
  position: absolute;
  top: 60px;
  width: 100%;
  height: 60px;
  line-height: 60px;
  color: #fff;
  font-size: 20px;
  background: #ac8b6c;
  display: none;
}
.navInner ul li:hover .secondMenu {
  display: block;
}
/*搜索*/
.searchBox .fl {
  display: flex;
  justify-content: space-between;
}
.searchBox span {
  color: #fff;
  font-size: 18px;
  line-height: 60px;
  margin-right: 10px;
}
.searchBox p {
  width: 300px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  margin-top: 10px;
}
.searchBox p .searchIpt {
  display: inline-block;
  height: 38px;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  margin-top: 1px;
  margin-left: 15px;
  width: 230px;
  background: none;
}
.searchBox p input::-webkit-input-placeholder {
  color: #fff;
}
.searchBox p input::-moz-input-placeholder {
  color: #fff;
}
.searchBox p input::-ms-input-placeholder {
  color: #fff;
}

.searchBox p .searchBtn {
  border: none;
  outline: none;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 0px 10px 10px 0px;
  border-left: 1px solid #fff;
  background: url("~@/assets/images/searchicon.png") no-repeat center center
    #bb2d2d;
  cursor: pointer;
}

@media screen and (max-width: 760px) {
  .publicwap {
    display: block;
  }
  .publicpc {
    display: none;
  }
  .top-header {
    background: #fff;
  }
  .top {
    width: 1105px;
    height: 130px;
    margin: 0 auto;
    position: relative;
  }
  .top-logo {
    float: left;
    /*width: 200px;*/
    height: 100px;
    margin-top: 15px;
  }
  .top-right {
    float: right;
    /*overflow: hidden;*/
  }
  .search {
    float: left;
    margin-top: 15px;
  }
  .search a {
    display: block;
  }
  .search span {
    float: left;
    color: #727272;
    font-size: 12px;
    line-height: 30px;
    margin-right: 10px;
  }
  .search div {
    width: 150px;
    height: 30px;
    background: #eee;
    float: left;
    padding-left: 18px;
    margin-right: 15px;
  }
  .search div input {
    width: 102px;
    height: 30px;
    padding: 0;
    margin: 0;
    float: left;
    background: #eee;
    border: none;
  }
  .search div img {
    float: right;
    margin-right: 10px;
    margin-top: 7px;
  }
  .code {
    float: left;
  }
  .code li {
    display: inline-block;
    height: 60px;
    position: relative;
  }
  .code-bt {
    float: left;
    line-height: 60px;
    margin: 0 15px;
    cursor: pointer;
  }
  .code-bt span {
    font-size: 12px;
    color: #727272;
    float: left;
  }
  .down {
    float: left;
    margin-left: 10px;
    margin-top: 27px;
  }
  .code-bt .img-m {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 60px;
    z-index: 100;
    left: 0px;
  }
  .register {
    float: left;
    margin-left: 22px;
    color: #fff;
    margin-top: 50px;
    /*background-image: linear-gradient(to right, #082E70, #C30D23);*/
    background: #c30d23;
    line-height: 30px;
    border-radius: 50px;
  }
  .register a {
    font-size: 12px;
    color: #fff;
    padding: 0 12px;
  }
  .register a:hover {
    color: #fff;
  }
  .registertouxiang img {
    width: 100%;
  }
  .registertouxiang a {
    display: flex;
  }
  .register-img {
    width: 50px;
    height: 50px;
    overflow: hidden;
    margin-right: 10px;
  }
  .register-nickname {
    line-height: 50px;
  }
  .register-nickname span {
    font-size: 12px;
  }
  .nav-switch {
    display: none;
  }
  .big-box {
    width: 100%;
    background: #c30d23;
    /*background: url(../img/bgnav.png?v=6) no-repeat center top;*/
    background-size: 100%;
  }
  .big-box:first-child {
    padding-bottom: 20px;
  }
  .mipcms-main .big-box {
    width: 100%;
    /*background: url(../img/bg.png?v=6) no-repeat center top;*/
    /*background:#C30D23;*/
    background: none;
    background-size: 100%;
  }

  .activity {
    width: 1105px;
    margin: 0 auto;
    overflow: hidden;
  }
  .activity li {
    float: left;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
  }
  .activity li a {
    font-size: 14px;
    margin-top: 30px;
    color: #fff;
  }
  .activity li:nth-of-type(2) {
    width: 26%;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
  }
  .activity li:nth-of-type(1) {
    width: 36%;
  }
  .activity li:nth-of-type(3) {
    width: 36%;
  }
  .nav {
    width: 1105px;
    margin: 28px auto 0;
    text-align: center;
    padding-bottom: 20px;
  }
  .nav-box em {
    color: #fff;
  }
  .nav-box {
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin: 0 auto;
  }
  .nav-box a {
    color: #fff;
    margin: 0 20px;
    padding-bottom: 4px;
    font-size: 16px;
  }
  .nav-box a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #fff;
  }
  .a-color {
    border-bottom: 2px solid #fff;
  }
  .nav {
    width: 110px;
    margin: 0;
    height: 92%;
    text-align: center;
    padding-bottom: 20px;
    position: fixed;
    top: 52px;
    right: -110px;
    z-index: 1000;
    background: #e15935;
    overflow-y: scroll;
  }

  .nav-box {
    text-align: center;
    color: #fff;
    font-size: 14px;
  }

  .nav-box a {
    color: #fff;
    margin: 0 6px;
    display: block;
    padding-bottom: 4px;
    padding-top: 10px;
  }

  .nav-box em {
    display: none;
  }

  .nav-box a:hover {
    border-bottom: 2px solid #fff;
  }

  .a-color {
    border-bottom: 2px solid #fff;
  }
}

@media screen and (max-width: 760px) {
  .publicpc {
    display: none;
  }
  .publicwap {
    display: block;
  }
  .wapHead {
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: space-between;
    padding-left: 20rpx;
    padding-right: 20rpx;
  }
  .waplogp {
    width: 70%;
  }
  .waplogp img {
    width: 100%;
  }
  .wap-tab {
    width: 12%;
  }
  .wap-tab img {
    width: 100%;
  }
}
</style>
